home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************
- * TEXTRA AREXX script -- Mike Haas, 1993, All Rights Reserved. *
- * Freely distributable ONLY as a component of the TEXTRA package. *
- * This banner may not be removed or altered (improvements to the *
- * actual program welcome). Please document and send to me. *
- * !!! PLACE THIS FILE IN YOUR REXX: DIRECTORY !!! *
- ******************************************************************/
-
- /* Usage: Files
- *
- * This script accepts no parameters. It opens a window titled
- * 'ram:Textra Files' and then queries Textra about each of it's
- * open windows, using the (new in 1.15) "GET window info" and
- * "GET file info" commands. All queried information is displayed
- * in the opened window.
- *
- * Mike Haas
- *
- */
-
- OPTIONS results
- /* trace all */
-
- rex = 0; result = "NOTSUPPORTED"
- textraversion
- parse var result maj min rex
- if (result == "NOTSUPPORTED") | (rex < 10) then do
- notify "Textra V1.15 or later required for this script."
- exit
- end
-
- openfile '"ram:Textra Files"';parse var result tfp
- if tfp = 0 then
- exit
- clear
-
- ii = 1
- get window ii; wp = result
-
- do while wp ~= 0
-
- if wp ~= tfp then do
-
- selectwindow wp
-
- get file info
- parse var result mod' 'numLines' 'memsize' 'disksize
-
- get window info
- parse var result left' 'top' 'width' 'height' 'numVisLines' 'numVisChars
-
- get file name; fname = result
- get file path; fpath = result
-
- selectwindow tfp
-
- newline
- textn '"****************************************************"'
- text '"File: 'fpath'"';textn fname
- textn '"----------------------------------------------------"'
- textn '"Size in mem: 'memsize' Size on disk: 'disksize'"'
- textn '"Modified? 'mod' Number of lines: 'numLines'"'
- textn '"Window position (l t w h): 'left' 'top' 'width' 'height'"'
- textn '"Number of visible lines high: 'numVisLines'"'
- textn '"Number of visible chars wide: 'numVisChars'"'
- textn '"****************************************************"'
-
- end
-
- ii = ii + 1
- get window ii; wp = result
- end
-
-